This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Repository navigation
fix: pass every meta cargo command through to cargo - #15
Merged
Merged
Conversation
meta-rust only handled cargo build/test and answered everything else (fmt, clippy, --version, ...) with its help. It now runs cargo with the given args in each selected repo that has a Cargo.toml, skips the others with a note, quotes args for the shell, stops running the meta root twice, and runs a Cargo workspace once from its root instead of again in each member repo. The rust build/test aliases are gone; meta cargo is the one command. Implements [[tasks/harmony-2746]]
Skipping members of a workspace rooted at another selected repo is wrong for commands that depend on the current package (run, add, install --path ., third-party subcommands). Drop it; plain cargo in the root runs a cross-repo workspace once. Implements [[tasks/harmony-2746]]
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Implements [[tasks/harmony-2746]]
gold-silver-copper
added a commit
to gitkb/meta-archive
that referenced
this pull request
Oct 24, 2026
meta exec runs commands as typed (gitkb/meta_cli#39); meta cargo passes any cargo command through (gitkb/meta_rust_cli#15). Skill copies come from meta_cli via make skills; Cargo.lock follows meta_rust_cli's deps. Implements [[tasks/harmony-2743]]
cmd.exe has no POSIX quoting, so shlex quoting broke args like --features=foo,bar there; Windows keeps the plain join. meta_cli sends help requests without the repo list, so any --help/-h shows the plugin help again instead of running cargo in the current directory only. Implements [[tasks/harmony-2746]]
gold-silver-copper
added a commit
to gitkb/meta_cli
that referenced
this pull request
Oct 24, 2026
Matches gitkb/meta_rust_cli#15, which drops meta rust build/test. Also covers the reported cargo --version shape in the routing test. Implements [[tasks/harmony-2745]]
gold-silver-copper
added a commit
to gitkb/meta_cli
that referenced
this pull request
Oct 25, 2026
fix(exec): run commands as typed, never through a plugin `meta exec -- cargo --version` printed meta-rust's help instead of running cargo: exec offered every command to plugins first, and a plugin claiming `cargo build` also took every other `cargo ...` command by its first word. `meta exec` now always runs the command in each repo. Plugins are only consulted for `meta <command>`, matched on whole argv words: the longest claimed command wins, otherwise the plugin owning the first word gets the whole command and handles subcommands it does not implement. The unused `handles_command` copy of the old matching is gone. Implements [[tasks/harmony-2745]] test(plugins): show namespace fallback takes the whole command Implements [[tasks/harmony-2745]] docs(skills): meta-rust runs any meta cargo command Matches gitkb/meta_rust_cli#15, which drops meta rust build/test. Also covers the reported cargo --version shape in the routing test. Implements [[tasks/harmony-2745]] docs(exec): point git users at meta git; drop tests of removed logic meta exec -- git runs plain git, without meta-git's no-prompt env, so the exec help no longer uses git fetch as its example and the skill says so. Six plugin_git tests only re-ran copies of the old clone detection and arg splitting inline; route and plugin_routing cover the real code. Implements [[tasks/harmony-2745]]
gold-silver-copper
added a commit
to gitkb/meta-archive
that referenced
this pull request
Oct 25, 2026
#110) fix(build): make install overwrites untracked binaries; drop meta-rust cargo install --path always rebuilds, so --force only changes the case where a binary cargo doesn't track (a release download) is in the way. meta-rust leaves make install to match what releases ship. Implements [[tasks/harmony-2743]] fix(build): make uninstall still removes meta-rust Earlier make installs put meta-rust in ~/.cargo/bin; leaving it there keeps breaking meta exec -- cargo commands other than build and test. Implements [[tasks/harmony-2743]] docs(readme): meta-rust is optional; name both install script dirs Implements [[tasks/harmony-2743]] fix(build): install and ship meta-rust again make install keeps installing meta-rust, and releases now ship it too (archives, Homebrew, install scripts), so every install path agrees. Implements [[tasks/harmony-2743]] docs: describe meta exec and meta cargo as the sibling PRs ship them meta exec runs commands as typed (gitkb/meta_cli#39); meta cargo passes any cargo command through (gitkb/meta_rust_cli#15). Skill copies come from meta_cli via make skills; Cargo.lock follows meta_rust_cli's deps. Implements [[tasks/harmony-2743]] test(help): cargo help as meta_rust_cli#15 ships it Implements [[tasks/harmony-2743]] docs(skills): sync meta-plugins skill from meta_cli#39 Implements [[tasks/harmony-2743]] docs: README routing matches meta_cli#39; bump the Claude plugin for … …its skill changes Implements [[tasks/harmony-2743]] docs(skills): sync meta-exec skill from meta_cli#39 Implements [[tasks/harmony-2743]] docs(architecture): meta exec -- git is plain git; use meta git Implements [[tasks/harmony-2743]]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
meta-rustadvertised onlycargo build,cargo test,rust build,rust test. meta_cli sends anymeta cargo …to it (it matches on the first word), and the plugin answered everything else with its help. Someta cargo fmt,meta cargo clippy,meta cargo --version,meta cargo updateprinted help instead of running. Many people havemeta-rustinstalled from earliermake installs, so this has to just work once they update.Now
meta cargo <any cargo args>runscargo <args>in each selected repo that has aCargo.toml:Changes, all in
src/lib.rs/src/main.rs:cargo, and planscargo <args>for any args. Baremeta cargoand any--help/-hshow the plugin help without running anything, as before (keeps the side-effect-free help from 1f62fc2). meta_cli sends help requests without the repo list, so passing--helpon to cargo could not reach each repo anyway.Cargo.tomlare listed on stderr (meta-rust: skipping docs (no Cargo.toml));--silenthides it.shlex). Plans run through$SHELL -c, so--features "a b"used to split. On Windows loop_lib runs plans withcmd.exe /c, which has no POSIX quoting, so args are joined as given, exactly as before.projects; the plugin added.again, so a Rust meta root ran twice. It now usesprojectsas given (or.when empty, which only happens outside a real run).gitkb/meta), cargo runs in the root and in each member. Skipping the members would be wrong for commands that depend on the current package (run,add,install --path ., third-party subcommands). To run such a workspace once, use plaincargoin its root; the help says so.meta cargo <cargo args>, examples that work, a note on what is skipped and on workspaces.rust build/rust testaliases (meta cargo …is the one command; pre-release, no shim), the deadget_help_text, a test that only testedmeta_plugin_protocolserialization, and the now-unusedmeta_core,anyhowandserde_jsondeps.Help, before → after:
How it was verified
cargo test -p meta_rust_cli,cargo clippy -p meta_rust_cli --all-targets -- -D warnings,cargo fmt --check. Three tests: an arbitrary subcommand (fmt --check -- --config 'a b') planscargo …only in the Rust repo, quoted, with non-Rust repos skipped; and a workspace root and its member both getcargo run, while--include memberplans only the member; and bare args or any--helpgive the plugin help. The quoting assertion expects'a b'on Unix and the plain join on Windows; CI runs both.metabuilt frommeta_climain and this plugin, both installed into a throwawayCARGO_INSTALL_ROOTfirst onPATH(the real install untouched), in a scratch meta repo with one Rust and one non-Rust repo:meta cargo --version→ runs inrusty, skips.anddocs, exit 0.meta cargo fmt --check→ passes, exit 0; after unformattingrusty/src/lib.rsit shows the diff and exits 1.meta --dry-run cargo build --features 'a b'→cargo build --features 'a b'inrustyonly.meta --include docs cargo --version,meta --exclude rusty cargo check→ "No Rust projects found".meta cargo,meta cargo --help,meta cargo build --help→ plugin help, nothing runs.meta --helplistscargowith its real description.gitkb/metaworkspace:meta --primary --dry-run cargo fmt --checkplans 11 runs (root + 10 member repos), skippingagentandmeta-plugins(no Cargo.toml).Look closely at
meta rust build/meta rust testnow give meta's "unrecognized command" error.--json,--verbose,--silent,--recursive,--strict,--primaryanywhere on the line before the plugin sees it (extract_global_flags), someta cargo build --verbosesets meta's verbose, not cargo's. Not changed here.gitkb/metaCargo.lockneeds the dep change (shlex in; meta_core, anyhow, serde_json out);on-child-update.ymlcarries that over after merge.Related
meta-rustback inmake installand the README's passthrough claim once this is true.meta exec -- <cmd>runs commands as typed, never through a plugin.